package com.bbzn.device.client.service.impl;

import com.bbzn.device.client.dao.history.AlarmCnEnMapper;
import com.bbzn.device.client.dataobject.AlarmCnEn;
import com.bbzn.device.client.service.AlarmCnEnService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author wulongbo
 * @Date 2021/6/15 9:05
 * @Version 1.0
 */
@Service
public class AlarmCnEnServiceImpl implements AlarmCnEnService {

    @Resource
    private AlarmCnEnMapper alarmCnEnMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return alarmCnEnMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(AlarmCnEn record) {
        return alarmCnEnMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(AlarmCnEn record) {
        return alarmCnEnMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(AlarmCnEn record) {
        return alarmCnEnMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(AlarmCnEn record) {
        return alarmCnEnMapper.insertSelective(record);
    }

    @Override
    public AlarmCnEn selectByPrimaryKey(Long id) {
        return alarmCnEnMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(AlarmCnEn record) {
        return alarmCnEnMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(AlarmCnEn record) {
        return alarmCnEnMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<AlarmCnEn> list) {
        return alarmCnEnMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<AlarmCnEn> list) {
        return alarmCnEnMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<AlarmCnEn> list) {
        return alarmCnEnMapper.batchInsert(list);
    }

    @Override
    public List<AlarmCnEn> selectSelective(AlarmCnEn record) {
        return alarmCnEnMapper.selectSelective(record);
    }

}
